
//TODO validation on client side is being put on hold for a little bit.  with later versions of MVC there will be built in xVal type integration and we'll 
//be able to use the NHibernate.Validator for all validation and continue with it's goodness for data schema creation etcetera. it also works fine for server
// validation and it's possible it could be hooked up for client side before mvc 2, going down list of priorities for now though. 
//using System.ComponentModel.DataAnnotations;
using NHibernate.Validator.Constraints;
using SharpArch.Core.DomainModel;

namespace good1.Core
{
    public class Photo : Entity
    {
        private Project project;

        public Photo()
        {
            if(project==null) project = new Project();
        }

        [NotNull, NotEmpty]
        [Length(1,300)]
		public virtual string Name { get; set; }

		[NotNull, NotEmpty]
		public virtual string Url { get; set; }

		[NotNull, NotEmpty]
		public virtual string Description { get; set; }

        [NotNull, NotEmpty]
        [Length(1, 100)]
		public virtual string TagLine { get; set; }

        [NotNull]
        public virtual bool IsThumbnail { get; set; }

        public virtual Project Project { get{ return project;} set{ project = value;} }

   
    }
}
